package com.aizhixin.lab.course.template.entity;

import com.aizhixin.lab.common.entity.AbstractEntity;
import com.aizhixin.lab.project.template.entity.Project;
import com.aizhixin.lab.project.template.entity.ProjectPost;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import java.util.List;

@Entity(name = "c_template")
@ToString
public class Template extends AbstractEntity {
    @Column(name = "name")
    @Getter
    @Setter
    private String name;
    @Column(name = "type")
    @Getter
    @Setter
    private Integer type;//10:理论课 20:实验课
    @Column(name = "class_hour")
    @Getter
    @Setter
    private Integer classHour;//学时
    @Column(name = "count_chapter")
    @Getter
    @Setter
    private Integer countChapter;
    @Column(name = "count_section")
    @Getter
    @Setter
    private Integer countSection;
    @Column(name = "image")
    @Getter
    @Setter
    private String image;
    @Column(name = "intro")
    @Getter
    @Setter
    private String intro;
    @Column(name = "is_publish")
    @Getter
    @Setter
    private Boolean isPublish;
    @Column(name = "is_default_ex")
    @Getter
    @Setter
    private Integer isDefaultEx=0;
    @Column(name = "vm_name")
    @Getter
    @Setter
    private String vmName;
    @Column(name = "vm_num")
    @Getter
    @Setter
    private Integer vmNum;
}
